import http from './http.js'

import {
	url_1,
	url_2,
	url_3
} from './url.js'
var http1 = new http(url_1);
var http2 = new http(url_2);
var http3 = new http(url_3);

// 登录接口
export const login = params => http1.post('/auth/login', params);
// 获取登录验证码接口
export const getCodeImg = params => http1.get('/auth/code', params);
// 登录获取openid、token接口
export const postLogin = params => http1.post('/auth/wx/login', params);
// 获取三元信息接口
export const getMaterial = params => http1.get('/api/material', params);
// 获取当前三元单价信息接口
export const getUnitPrice = params => http1.get('/api/materialValue/now', params);
// 获取全部三元单价信息接口
export const getMaterialPrice = params => http1.get('/api/materialValue', params);
// 向客户端发送登录用户接口
export const bindWechat = params => http1.put('/auth/bind', params);
// 向客户端发送登录用户接口
export const unbind = params => http1.put('/auth/unbind', params);
